<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">  
	</head>
	<body>
		<form method="post" action="update_add_address">
            {% csrf_token %}
			<div class="form-group">
                <input type="text" hidden name="user" value="{{ user }}"/>
                <input type="text" hidden name="id" value="{{ id }}"/>

                {% for i in querySet %}
                    <label>收货人 ：</label>
                    <input type="text" class="form-control" name="name" value="{{ i.name }}" placeholder="收货人姓名" /><br/>
                    <label>所在地 ：</label>
                    <input type="text" class="form-control" name="address" value="{{ i.adress }}"  placeholder="收货人所在地" /><br/>
                    <label>电话号 ：</label>
                    <input type="text" class="form-control" name="phone" value="{{ i.phone }}" placeholder="收货人电话" /><br/>
                    <label>邮&nbsp;箱 ：</label>
                    <input type="email" class="form-control" name="email" value="{{ i.email }}" placeholder="收货人邮箱" id="youxiang" /><br/>
				<input type="submit" class="btn btn-danger" value="提交"/>
                {% endfor %}

			</div>
		</form>
{#    <script type="text/javascript">#}
{#        function close() {#}
{#            window.close()#}
{#        }#}
{#    </script>#}
	</body>
</html>
